import request from '@/utils/request'

// 获取退休人员列表
export function getRetireeList(data) {
  return request({
    method: 'post',
    url: '/system/employee/retire/list',
    data
  })
}

// 获取退休人员详情
export function getRetireeDetail(params) {
  return request({
    method: 'post',
    url: '/system/employee/retire/detail',
    params
  })
}

// 新增/编辑
export function saveRetiree(data) {
  return request({
    method: 'post',
    url: '/system/employee/retire/edit',
    data
  })
}

// 删除
export function deleteRetiree(params) {
  return request({
    method: 'post',
    url: '/system/employee/retire/delete',
    params
  })
}
